package com.coscoshipping.rams.demo.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.coscoshipping.rams.demo.entity.AEncrypt;
import com.coscoshipping.rams.demo.pojo.dto.dict.AEncryptDTO;
import com.coscoshipping.rams.demo.pojo.vo.AEncryptVO;
import com.coscoshipping.rams.orm.annotation.SensitiveField;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhaoyin.yang
 * @since 2024-07-12
 */
public interface AEncryptMapper extends BaseMapper<AEncrypt> {

    public List<AEncryptVO> getAEncryptByPhone(@SensitiveField @Param("mobile") String mobile);

    public List<AEncryptVO> getAEncryptByAEncrypt(@Param("encryptDTO") AEncryptDTO encryptDTO);

    public void insertBatchByParam(@Param("encryptList") List<AEncryptDTO> encryptList);

    public void insertAEncrypt(@Param("encrypt") AEncryptDTO encrypt);

    public void insertAEncryptNormal(@SensitiveField @Param("mobile") String mobile,
                                     @SensitiveField @Param("identify") String identify,
                                     @SensitiveField @Param("bankcard") String bankcard,
                                     @SensitiveField @Param("email") String email,
                                     @Param("chineseName") String chineseName);
}
